package com.cf.conf.core.formate;

import com.cf.mapper.BeanMapper;
import com.cf.util.SpringBeanUtil;

/**
 * game-server-PrimitiveFormate
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/8 下午 05:06
 */
public class PrimitiveFormate implements Formate {

    @Override
    public Object formate(String value, Class type) {
        return SpringBeanUtil.getBean(BeanMapper.class).map(value, type);
    }
}
